﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Web;

namespace Archives
{
    public class WKF_MessageMap : EntityTypeConfiguration<WKF_Message>
    {
        public WKF_MessageMap()
        {
            // Primary Key
            this.HasKey(t => t.MessageID);
            // Properties
            //                
            this.Property(t => t.MessageID)
                .IsRequired()
                .HasMaxLength(50)
                .HasColumnName("MessageID");
            //                
            this.Property(t => t.MessageTitle)
                .HasMaxLength(500)
                .HasColumnName("MessageTitle");
            //                
            this.Property(t => t.MessageCreateTime)
                .HasColumnName("MessageCreateTime");
            //                
            this.Property(t => t.MessageFinishTime)
                .HasColumnName("MessageFinishTime");
            //                
            this.Property(t => t.MessageTimeLimit)
                .HasMaxLength(50)
                .HasColumnName("MessageTimeLimit");
            //                
            this.Property(t => t.MessageFinishTimeExpected)
                .HasColumnName("MessageFinishTimeExpected");
            //                
            this.Property(t => t.MessageIssuedBy)
                .HasMaxLength(50)
                .HasColumnName("MessageIssuedBy");
            //                
            this.Property(t => t.MessageIssuedByAgent)
                .HasMaxLength(50)
                .HasColumnName("MessageIssuedByAgent");
            //                
            this.Property(t => t.MessageIssuedDept)
                .HasMaxLength(50)
                .HasColumnName("MessageIssuedDept");
            //                
            this.Property(t => t.MessageNote)
                .HasMaxLength(500)
                .HasColumnName("MessageNote");
            //                
            this.Property(t => t.InitNodeKey)
                .HasMaxLength(50)
                .HasColumnName("InitNodeKey");
            //                
            this.Property(t => t.MessageStatus)
                .HasColumnName("MessageStatus");
            //                
            this.Property(t => t.IsTemplate)
                .HasColumnName("IsTemplate");
            //                
            this.Property(t => t.MessageType)
                .HasMaxLength(50)
                .HasColumnName("MessageType");
            //                
            this.Property(t => t.MessageTypeKey)
                .HasMaxLength(50)
                .HasColumnName("MessageTypeKey");
            //                
            this.Property(t => t.MessageHelper)
                .HasMaxLength(50)
                .HasColumnName("MessageHelper");
            //                
            this.Property(t => t.FromTemplate)
                .HasMaxLength(50)
                .HasColumnName("FromTemplate");
            //                
            this.Property(t => t.DataSourceID)
                .HasMaxLength(255)
                .HasColumnName("DataSourceID");
            // Table & Column Mappings
            this.ToTable("WKF_Message");


        }
    }
}